package com.realgodo.site.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springside.modules.orm.Page;

import com.realgodo.site.entity.security.User;
import com.realgodo.site.service.UserManager;

public class ManController extends ControllerSupport{
	/***/
	private static final long serialVersionUID = 3475823463887857945L;

	@Autowired
	private UserManager userManager;
	
	private Page<User> userPage = new Page<User>(20);
	public String index() throws Exception {
		User userForm = new User();
		userForm.setEnable(User.ENABLED_DISENABLED_ALL);
		userForm.setMeiMeiMan(User.MEIMEI_MAN_YES);
		userForm.setMeiMeiMember(User.MEIMEI_MEMBER_ALL);
		userForm.setRecommend(User.RECOMMEND_ALL);
		userPage = this.userManager.findUsers(userPage, userForm);
		return "man";
	}
	public Page<User> getUserPage() {
		return userPage;
	}
	public void setUserPage(Page<User> userPage) {
		this.userPage = userPage;
	}
}
